#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>

template<class T>
void swap(T& a1, T& a2)
{
	T tmp = a1;
	a1 = a2;
	a2 = tmp;
}

template<class T>
void Print(T a1, T a2)
{
	std::cout << a1;
	std::cout << a2;
}

int main()
{
	//int f = 0;//arr[] = { 0 ,1,2,3,45,6,47,84,52};
	std::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	
	std::vector<int>::reverse_iterator it = v.rbegin();
	while (it != v.rend())
	{
		std::cout << *it << std::endl;
		++it;
	}
	//std::cout << *it << std::endl;
	int x = 10, y = 20;
	swap(x, y);
	std::cout << x << " " << y << std::endl;

	return 0;
}